package space.nyuki.mongotest.pojo;

import org.springframework.data.annotation.Id;

/**
 * @author ning
 * @createTime 2019/7/31 上午10:58
 * @description
 */
public class User {
    @Id
    public String id;

    public String firstName;
    public String lastName;

    public User() {}

    public User(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", firstName='" + firstName + '\'' +
                ", lastName='" + lastName + '\'' +
                '}';
    }
}